package org.idea.qiyu.live.framework.redis.starter.key;

import org.springframework.beans.factory.annotation.Value;


/**
 * @Description: redis 配置key值
 * @Author: 张广焱
 * @Date: 2024-03-31 17:52
 */
public class RedisKeyBuilder {

    /**
     * @Description: 模块名称
     * @Param:
     * @Author: 张广焱
     * @Date: 2024-03-31  17:53:09
     */
    @Value("${spring.application.name}")
    private String applicationName;
    /**
     * @Description: 业务标识
     * @Param:
     * @Author: 张广焱
     * @Date: 2024-03-31  17:53:31
     */
    private static final String SPLIT_ITEM = ":";

    public String getSplitItem() {
        return SPLIT_ITEM;
    }

    public String getPrefix() {
        return applicationName + SPLIT_ITEM;
    }
}